/*
 * @Author: liuying 247220246@qq.com
 * @Date: 2024-12-20 17:52:41
 * @LastEditors: liuying 247220246@qq.com
 * @LastEditTime: 2025-04-27 14:52:28
 * @FilePath: \my-book-react\src\pages\search\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react';
import SearchBar from '@/pages/search/compoments/searchBar';
import SearchList from '@/pages/search/compoments/searchList';
import SearchHot from '@/pages/search/compoments/searchHot';
import SearchHistory from '@/pages/search/compoments/searchHistory';
import { createReducer } from '@/pages/search/stores';
import { useReducer } from '@/stores';
import styles from './index.module.scss';
const Search: React.FC = () => {
  const { reducers } = React.useMemo(() => createReducer('search'), []);
  useReducer(reducers);
  return (
    <div className={styles.search}>
      <SearchBar />
      <SearchHot />
      <SearchHistory />
      <SearchList />
    </div>
  );
};

export default Search;
